package com.bub.pay.framework.redis.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class JPushModel implements Serializable {
    /**
     * 设备id
     */
    private String registrationId;
    /**
     * 模板
     */
    private String templateId;
    /**
     * 模板数据
     */
    private Map<String,String> data;

    private boolean isProd = true;

    public String getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(String registrationId) {
        this.registrationId = registrationId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    public boolean isProd() {
        return isProd;
    }

    public void setProd(boolean prod) {
        isProd = prod;
    }

    public void putData(String key,String value){
        if (data == null){
            data = new HashMap<>();
        }
        data.put(key,value);
    }
}
